<%@ page import="com.dingpeikeji.quickdeer.core.modules.sys.entity.Office"
	contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="FLAT_TYPE_BUS" value="<%=Office.FLAT_TYPE_BUS%>"></c:set>
<c:set var="FLAT_TYPE_ENTERPRISE"
	value="<%=Office.FLAT_TYPE_ENTERPRISE%>"></c:set>
<html>
<head>
<title><c:choose>
		<c:when test="${office.flatType == FLAT_TYPE_BUS }">车队信息</c:when>
		<c:when test="${office.flatType == FLAT_TYPE_ENTERPRISE }">旅行商信息</c:when>
		<c:otherwise>公司信息</c:otherwise>
	</c:choose></title>
<meta name="decorator" content="default" />
<script type="text/javascript">
</script>
</head>
<body>
	<ul class="nav nav-tabs">
	<li><a href="${ctx}/sys/user/info">个人信息</a></li>
	<li class="active"><c:choose>
				<c:when test="${office.flatType == FLAT_TYPE_BUS }">
					<a
						href="${ctx}/sys/office/form?id=${office.id}&flatType=${FLAT_TYPE_BUS}">车队信息</a>
				</c:when>
				<c:when test="${office.flatType == FLAT_TYPE_ENTERPRISE }">
					<a
						href="${ctx}/sys/office/form?id=${office.id}&flatType=${FLAT_TYPE_ENTERPRISE}">旅行商信息</a>
				</c:when>
				<c:otherwise>公司信息</c:otherwise>
			</c:choose></li>
	</ul>
	<br />
	<form:form id="inputForm" modelAttribute="office" class="form-horizontal">
		<form:hidden path="id" />
		<!-- 平台类型 -->
		<form:hidden path="flatType" value="${office.flatType}"/>
		<!-- 上级机构的ID -->
		<input type="hidden" name="parent.id" value="${office.parent.id }" />
		<sys:message content="${message}" />
		<div class="control-group">
			<label class="control-label">归属城市：</label>
			<div class="controls">
				<input type="text" value="${office.area.name}" readonly class="span4" />
			</div>
		</div>
		<c:if test="${office.flatType == FLAT_TYPE_ENTERPRISE }">
			<div class="control-group">
				<label class="control-label">旅行社全称：</label>
				<div class="controls">
					<input type="text" class="span4" readonly value="${office.name}"/>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">旅行社简称：</label>
				<div class="controls">
					<input type="text" class="span4" readonly value="${office.abbr}"/>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">旅行商类型：</label>
				<div class="controls">
				<input type="text" class="span4" readonly value="${fns:getDictLabel(office.parnertype, 'company', '无')}"/>
				</div>
			</div>
		</c:if>
		<c:if test="${office.flatType == FLAT_TYPE_BUS }">
<%-- 		<div class="control-group">
			<label class="control-label">公司LOGO:</label>
			<div class="controls">
				<form:hidden id="companylogo" path="companylogo" htmlEscape="false" maxlength="200" class="input-xlarge"/>
				<sys:ckfinder input="companylogo" type="images" uploadPath="/company" selectMultiple="false" maxWidth="100" maxHeight="100"/>
			</div>
		</div> --%>
			<div class="control-group">
				<label class="control-label">企业全称：</label>
				<div class="controls">
				<input type="text" class="span4" readonly value="${office.name}"/>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">公司合同章：</label>
				<div class="controls">
					<img  src="${office.contract}"  class="span4" style="width: 150px;">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">企业简称：</label>
				<div class="controls">
				<input type="text" class="span4" readonly value="${office.abbr}"/>
				</div>
			</div>
			<div class="control-group">
			<label class="control-label">特色服务：</label>
			<div class="controls">
				<table>
					<tr>
						<td>商务套装</td>
						<td>车载wifi</td>
						<td>充电</td>
						<td>矿泉水</td>
						<td>纸巾</td>
					</tr>
					<tr>
						<td>
							<form:select path="businesssuit" htmlEscape="false"  disabled="true" class="span1">
							<form:options items="${fns:getDictList('yes_no')}"	itemLabel="label" itemValue="value" htmlEscape="false" />
							</form:select>
							<span class="fenge">--</span>
							
						</td>
						<td>
							<form:select path="iswifi" htmlEscape="false" disabled="true" class="span1">
							<form:options items="${fns:getDictList('yes_no')}"	itemLabel="label" itemValue="value" htmlEscape="false" />
							</form:select>
							<span class="fenge">--</span>
						</td>
						<td>
							<form:select path="powersupply" htmlEscape="false"  disabled="true" class="span1">
							<form:options items="${fns:getDictList('yes_no')}"	itemLabel="label" itemValue="value" htmlEscape="false" />
							</form:select>
							<span class="fenge">--</span>
						</td>
						<td>
							<form:select path="tablewater" htmlEscape="false"  disabled="true" class="span1">
							<form:options items="${fns:getDictList('yes_no')}"	itemLabel="label" itemValue="value" htmlEscape="false" />
							</form:select>
							<span class="fenge">--</span>
						</td>
						<td>
							<form:select path="paper" htmlEscape="false" disabled="true" class="span1">
							<form:options items="${fns:getDictList('yes_no')}"	itemLabel="label" itemValue="value" htmlEscape="false" />
							</form:select>
						</td>
					</tr>
					<!-- 错误提示区域 -->
					<tr>
						<td id="td_suitrtnprice">
						</td>
						<td id="td_suitonewayprice">
						</td>
						<td id="td_suitfreeprice">
						</td>
						<td id="td_kms">
						</td>
						<td id="td_lasthour">
						</td>
						<td id="td_vehiclenum">
						</td>
					</tr>
				</table>
			</div>
		</div>		
		</c:if>
		<div class="control-group">
			<label class="control-label">营业执照编码：</label>
			<div class="controls">
				<form:input path="licenseno" htmlEscape="false" readonly="true" maxlength="20"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">组织机构代码编号：</label>
			<div class="controls">
				<form:input path="orgcode" htmlEscape="false" readonly="true" maxlength="20"
					class="span4"  />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">税务登记证编号：</label>
			<div class="controls">
				<form:input path="taxregno" htmlEscape="false" maxlength="20" readonly="true"
					class="span4 " />
			</div>
		</div>
		<!-- 客运特有的字段 -->
		<c:if test="${office.flatType == FLAT_TYPE_BUS }">
			<div class="control-group">
				<label class="control-label">道路经营许可证号：</label>
				<div class="controls">
					<form:input path="permitcode" htmlEscape="false" maxlength="60" readonly="true"
						class="span4" />
				</div>
			</div>
		</c:if>
		<div class="control-group">
			<label class="control-label">开户银行：</label>
			<div class="controls">
				<form:input path="bankname" htmlEscape="false" maxlength="50" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">银行账号：</label>
			<div class="controls">
				<form:input path="bankaccount" htmlEscape="false" maxlength="30" readonly="true"
					class="span4" />
			</div>
		</div>
		
		<!-- 企业的特有字段 -->
		<c:if test="${office.flatType == FLAT_TYPE_ENTERPRISE }">
		<div class="control-group">
			<label class="control-label">旅游经营许可证编号：</label>
			<div class="controls">
				<form:input path="permitcode" htmlEscape="false" maxlength="60" readonly="true"
					class="span4 digits" />
			</div>
		</div>
			<div class="control-group">
				<label class="control-label">资质等级：</label>
				<div class="controls">
					<form:input path="qualitygrade" htmlEscape="false" maxlength="20" readonly="true"
						class="span4 " />
				</div>
			</div>

		</c:if>
		<div class="control-group">
			<label class="control-label">注册经营地址：</label>
			<div class="controls">
				<form:input path="address" htmlEscape="false" maxlength="255" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">实际经营地址：</label>
			<div class="controls">
				<form:input path="realaddr" htmlEscape="false" maxlength="255" readonly="true"
					class="span4 " />
			</div>
		</div>
		<c:if test="${office.flatType == FLAT_TYPE_ENTERPRISE }">
		<div class="control-group">
			<label class="control-label">计调负责人：</label>
			<div class="controls">
				<form:input path="operator" htmlEscape="false" maxlength="30" readonly="true"
					class="span4"  />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计调负责人手机：</label>
			<div class="controls">
				<form:input path="operatortel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计调负责人1：</label>
			<div class="controls">
				<form:input path="operatecont" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计调负责人手机1：</label>
			<div class="controls">
				<form:input path="operatecontel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计调负责人2：</label>
			<div class="controls">
				<form:input path="operatecont2" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计调负责人手机2：</label>
			<div class="controls">
				<form:input path="operatecontel2" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		</c:if>
		<c:if test="${office.flatType == FLAT_TYPE_BUS }">
		<div class="control-group">
			<label class="control-label">调度联系人：</label>
			<div class="controls">
				<form:input path="operator" htmlEscape="false" maxlength="30" readonly="true"
					class="span4"  />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调度联系人手机：</label>
			<div class="controls">
				<form:input path="operatortel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调度联系人1：</label>
			<div class="controls">
				<form:input path="operatecont" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调度联系人手机1：</label>
			<div class="controls">
				<form:input path="operatecontel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调度联系人2：</label>
			<div class="controls">
				<form:input path="operatecont2" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调度联系人手机2：</label>
			<div class="controls">
				<form:input path="operatecontel2" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		</c:if>
		<div class="control-group">
			<label class="control-label">财务负责人：</label>
			<div class="controls">
				<form:input path="fincharger" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">财务负责人手机：</label>
			<div class="controls">
				<form:input path="finchargertel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">财务联系人：</label>
			<div class="controls">
				<form:input path="contacts" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">财务联系人手机：</label>
			<div class="controls">
				<form:input path="contactstel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4 mobile" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">实际负责人：</label>
			<div class="controls">
				<form:input path="charger" htmlEscape="false" maxlength="30" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">实际负责人手机：</label>
			<div class="controls">
				<form:input path="chargertel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4 mobile" />
			</div>
		</div>
		<%-- <div class="control-group">
			<label class="control-label">联系人：</label>
			<div class="controls">
				<form:input path="contacts" htmlEscape="false" maxlength="30"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">联系人手机：</label>
			<div class="controls">
				<form:input path="contactstel" htmlEscape="false" maxlength="20"
					class="span4 mobile" />
			</div>
		</div> --%>
		
		<%-- <div class="control-group">
			<label class="control-label">是否可用:</label>
			<div class="controls">
				<form:select path="useable">
					<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline">“是”代表此账号允许登陆，“否”则表示此账号不允许登陆</span>
			</div>
		</div> --%>

		<div class="control-group">
			<label class="control-label">邮编：</label>
			<div class="controls">
				<form:input path="zipCode" htmlEscape="false" maxlength="6" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">法定代表人：</label>
			<div class="controls">
				<form:input path="master" htmlEscape="false" maxlength="50" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">法定代表人手机：</label>
			<div class="controls"> 
				<form:input path="phone" htmlEscape="false" maxlength="30" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">企业电话：</label>
			<div class="controls">
				<form:input path="stabletel" htmlEscape="false" maxlength="20" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">企业传真：</label>
			<div class="controls">
				<form:input path="fax" htmlEscape="false" maxlength="200" readonly="true"
					class="span4 " />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">企业邮箱：</label>
			<div class="controls">
				<form:input path="email" htmlEscape="false" maxlength="200" readonly="true"
					class="span4" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="3" readonly="true"
					maxlength="255" class="span4" />
			</div>
		</div>
		<div class="form-actions">
			<input id="btnCancel" class="btn" type="button" value="返 回"
				onclick="history.go(-1)" />
		</div>
	</form:form>
</body>
</html>